﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>首页</title>
   <link type="text/css" rel="stylesheet" href="css/style.css" />
   <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
   <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
   <script type="text/javascript">
      $(document).ready(function () {

         /**
          * 从网页获取输入的账号、密码，传回给login方法判断是否存在该账户，密码是否正确
          * 返回值为user对象，user不为空，表示查询成功，允许登录，跳转到新的首页，并带着用户对象一起跳转
          */
         $("#login").click(function () {
            var login=$("[name='login']").val();
            var password=$("[name='password']").val();
            var emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
            var phonePattern = /^1[3-9]\d{9}$/;
            if(emailPattern.test(login)){
               var email = login;
               $.get("User/selectlogin",{"email":email,"password":password},function (user) {
                  if (user.status==100){
                     var uid = localStorage.setItem("uid",user.result);
                     window.location.href="index1.html";
                  }else{
                     alert("登录失败！,请重新输入！");


                  }
               });
            }else if (phonePattern.test(login)){
               var phone = login;
               $.get("User/selectlogin",{"phone":phone,"password":password},function (user) {
                  if (user.status==100){
                     var uid = localStorage.setItem("uid",user.result);
                     window.location.href="index1.html";
                  }else{
                     alert("登录失败！,请重新输入！");

                  }
               });
            }else {
               var username = login;
               $.get("User/selectlogin",{"username":username,"password":password},function (user) {
                  if(user.status==100){
                     var uid = localStorage.setItem("uid",user.result);
                     window.location.href="index1.html";
                  }else{
                     alert("登录失败！,请重新输入！");

                  }
               });
            }
         });


         /**
          * 这里对应一分钟生成简历功能，单机后进入简历页面
          */
         $("#jianli").on("click", function () {

            window.location = "resume.html";
         });

         /**
          * 注册按钮，点击后进入注册页面
          */
         $("#zhuce").on("click", function () {

            window.location = "register.html";
         });


         /**
          * 左上角logo，单击可以返回首页
          */
         $("#shouye").on("click", function () {

            window.location = "index.html";
         });

         /**
          * 对应左上角”个人中心“，由于未登录，提示用户先登录
          */
         $("#personal_resume").on("click", function () {

            alert("请先登录");
         });

         /**
          * 对应左上角”我的职位“，由于未登录，提示用户先登录
          */
         $("#personal_selected").on("click", function () {

            alert("请先登录");
         });

         /**
          * 单击”忘记密码“，进入到重置密码的password.html页面
          */
         $("#forgetpassword").click(function () {
            window.location.href="password.html";
         });

      });


   </script>


   <script>



   </script>
</head>

<body>
<div class="topDiv">
</div>
<div class="loginDiv">
   <div class="loginL">
      <img src="images/LOGO.png" />
      <img src="images/view_logo40.png" />
   </div>
   <div class="loginAddress">
      <div class="add1">
      </div>
   </div>
   <div class="loginC">
      <input name="" type="text" placeholder="请填写关键词或选择职位..." />
      <button id="search_btn"></button>
   </div>
   <div class="loginR">
      <img src="images/spirit_40.png" />
   </div>
</div>
<div class="menuDiv">
   <a id="shouye" class="onnav">首页</a>
   <a id="personal_resume">个人中心</a>
   <a id="personal_selected">我的职位</a>
</div>
<div class="BodyMain">
   <div class="mainTop">
      <div class="mainTopL">
         <ul>
            <div class="items">
               <div class="itemOne">
                  <span class="itme1"><b></b>销售|市场|客服|贸易</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme2"><b></b>经营管理|人事|行政|财务</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme3"><b></b>生产|质管|技工|物流</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme4"><b></b>教育|法律|咨询|翻译</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme5"><b></b>零售|家政|餐饮|旅游</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme6"><b></b>广告|媒体|艺术|出版</span>
               </div>
            </div>
            <div class="items">
               <div class="itemOne">
                  <span class="itme7"><b></b>IT|互联网|通信</span>
               </div>
            </div>
         </ul>
      </div>
      <div class="mainTopR">
         <div class="ads">
            <div class="floatL" id="left"></div>
            <div class="adBox0">
               <ul style="margin-left: 0px; overflow: hidden">
                  <li>
                     <a href="javascript:void(0)"><div style="background:url(images/1.jpg);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                  </li>
                  <li>
                     <a href="javascript:void(0)"><div style="background:url(images/2.jpg);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                  </li>
                  <li>
                     <a href="javascript:void(0)"><div style="background:url(images/3.gif);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                  </li>
               </ul>
            </div>
            <div class="clear"> </div>
         </div>
         <div class="login">
            <div class="erweima">
               <div class="close"></div>
               <div class="ewmimg"><img src="images/showqrcode.jpg" /></div>
               <div class="ewmtxt">使用微信扫描上方二维码登录</div>
            </div>
            <div class="logintop">
               <div class="loginC loginA select">
                  <span>个人登录</span>
               </div>
               <div class="loginC loginB">
               </div>
            </div>
            <div class="loginmain">
               <div class="ContentA">
                  <div class="txtInput"><input  name="login" type="text" placeholder="请输入用户名"/></div>
                  <div class="txtInput"><input  name="password" type="text" placeholder="请输入密码"/></div>
                  <div class="txtbtn">
                     <div style="float:left">
                        <br /><div class="clear"></div>
                        <a class="a2" href="password.html">忘记密码</a>
                     </div>
                     <input id="login" type="button" class="lobtn" value="登  录"/>
                  </div>
                  <div class="zcbox">
                     <div class="zc2">
                        <a id="jianli"  class="a1">一分钟填写简历</a>
                        <a id="zhuce"  class="a2">注册</a>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="clear"></div>
      </div>
   </div>
   <div class="clear"></div>
   <div class="mainCon2">
      <div class="commontitdiv">
         <div class="title">高薪职位</div>
         <span>高薪就这么任性！</span>
      </div>
      <div class="clear"></div>
      <div class="highMoney">
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
         <div class="lineBox"></div>
         <div class="divBox">
            <a><img src="images/18.gif" width="84"/></a>
            <p class="tit"><a>橱柜设计</a></p>
            <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>
            <p class="num"><span>8K-10K</span></p>
         </div>
      </div>
   </div>
   <div class="clear"></div>
</div>
<div class="footerLine"></div>
<div class="footer">
   <div class="footerdown">
   </div>
</div>
</body>


</html>
